package org.BUPT.domain.service;

import org.BUPT.infrastructure.persistent.po.Answer;
import org.BUPT.infrastructure.persistent.po.Message;
import org.BUPT.infrastructure.persistent.po.Question;
import org.BUPT.infrastructure.persistent.po.Question_Tag;
import org.springframework.stereotype.Service;

import java.util.List;
@Service

public interface QuestionService {
    public Question getQuestion(int questionId);
    public List<String> getTagsOfQuestion(int questionId);
    public List<Question> getSubscribedQuestions(int userId);
    public List<Question> getAskedQuestions(int userId);
    public List<Answer> getAnswersOfQuestion(int questionId);
    public int getAnswersNum(int questionId);
    public List<Question> getPage(int pageId);
    public void subscribeQuestion(int userId, int questionId);
    public void addQuestionTag(Question_Tag question_tag);
    public Question saveQuestion(Question question);
    public void unSubscribe(int userId, int questionId);
    // 这个用于观察者模式？
    public List<Integer> getSubscribedUserOfQuestion(int questionId);
}
